package com.jn.entity;

import java.io.Serializable;
import java.util.List;

import net.sf.json.JSONObject;

public class DataTableRetu implements Serializable{
	
	private static final long serialVersionUID = 635557907146528017L;

	private Integer code;
	
	private Integer count;
	
	private List<? extends BaseEntity> data;
	
	private String msg;
	
	public DataTableRetu(Integer code, Integer count, List<? extends BaseEntity> data) {
		this.code = code;
		this.count = count;
		this.data = data;
	}
	
	public Integer getCode() {
		return code;
	}

	public void setCode(Integer code) {
		this.code = code;
	}

	public Integer getCount() {
		return count;
	}

	public void setCount(Integer count) {
		this.count = count;
	}
	
	public List<? extends BaseEntity> getData() {
		return data;
	}

	public void setData(List<? extends BaseEntity> data) {
		this.data = data;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}
	
	public String ToJsonStr() {
		return JSONObject.fromObject(this).toString();
	}
	
}
